#include <iostream>
#include "psoml_class.h"

////////////////////////////////////////////////////////////////////////////////
// Program main
////////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
	//check argument files have been parsed
	if(argc == 1){
		cout << "Error: No runtime parameters passed." << endl;
		system("PAUSE");
		return -1;
	}

	for(int i = 1; i < argc; i++)
	{
		Psoml psoml;
		//load the parameters from the file
		psoml.SetParametersFromFile(argv[i]);
		//run the simulation
		psoml.Run();
		//output timings to console
		cout << argv[i] << psoml.averageTime << endl;
	}

	return 0;
}
